package top.dingwen.io.treasure.encrypt.api.autoconfigure;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * EncryptProperties 配置
 *
 * @author dingwen
 * @since 2023/3/5 09:59
 */
@ConfigurationProperties(prefix = "dingwen.treasure.encrypt.api")
@Getter
@Setter
public class EncryptApiProperties {
    /**
     * 是否开启默认API,默认关闭 </br>
     * <ul>
     *     <li> true: 开启 </li>
     *     <li> false: 关闭 </li>
     * </ul>
     */
    private String defaultApiEnabled;

    /**
     * 加密开关
     */
    private Boolean enabled;

    /**
     * 头部标识
     */
    private String headerFlag;

    /**
     * 响应加密公钥
     */
    private String publicKey;

    /**
     * 请求解密私钥(建议通过启动脚本设置确保安全)
     */
    private String privateKey;

    /**
     * 拦截的地址
     */
    private List<String> interceptUrls;



}
